<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			let This = this
			uni.getSystemInfo({
				success: function(e) {
					This.globalData.screenHeight = e.screenHeight
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45
					}
					// #endif
					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight
					let custom = wx.getMenuButtonBoundingClientRect()
					Vue.prototype.Custom = custom
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight
					// #endif
					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight
					// #endif
				},
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
		}
	}
</script>
<style>
	page {
		
	}
</style>
<style lang="scss">
	page {
		max-width: 430px;
		margin: 0 auto;
	}
	/* 注意要写在第一行，同时给style标签加
	入lang="scss"属性 */
	@import './uni_modules/uview-ui/index.scss';
	@import url('https://at.alicdn.com/t/c/font_4542418_rp2s6qmcoeo.css?spm=a313x.manage_type_myprojects.i1.9.7c963a812klStA&file=font_4542418_rp2s6qmcoeo.css');

</style>

